import request from '@/config/axios'

// 护理级别 VO
export interface Level_ContentVO {
  id: Number // 主键
  levelName: String // 护理级别名称
  levelStatus: Number // 1:启用  2 停用
  remarks:String
  contentList: ContentDO[] // 备注
}

// 护理级别 API
export const Level_ContentApi = {
  // 查询护理级别分页
  getLevelPage: async (params: any) => {
    return await request.get({ url: `/yyzx/level_content/page`, params })
  },

  // 查询护理级别详情
  getLevel: async (id: number) => {
    return await request.get({ url: `/yyzx/level_content/get?id=` + id })
  },

  // 新增护理级别
  createLevel: async (data: LevelVO) => {
    return await request.post({ url: `/yyzx/level_content/create`, data })
  },

  // 修改护理级别
  updateLevel: async (data: LevelVO) => {
    return await request.put({ url: `/yyzx/level_content/update`, data })
  },

  // 删除护理级别
  deleteLevel: async (id: number) => {
    return await request.delete({ url: `/yyzx/level_content/delete?id=` + id })
  },

  // 导出护理级别 Excel
  exportLevel: async (params) => {
    return await request.download({ url: `/yyzx/level_content/export-excel`, params })
  },
}
